package com.example.certificate.service;

import com.example.certificate.dto.OrderIinsDto;
import com.example.certificate.dto.UpdateStatusDTO;
import com.example.certificate.entity.OrderFrom;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.certificate.entity.User;
import com.example.certificate.utils.ResultEntity;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hao
 * @since 2022-03-10 14:03:12
 */
public interface OrderFromService extends IService<OrderFrom> {

    /**
     * @Author Hao
     * @Description  新增
     * @Date 2022/3/10
     * @Param [dto]
     * @return com.example.certificate.utils.ResultEntity
     **/
    ResultEntity insertOrder(OrderIinsDto dto, User user);

    /**
     * @Author Hao
     * @Description  修改订单状态
     * @Date 2022/3/10
     * @Param [dto]
     * @return com.example.certificate.utils.ResultEntity
     **/
    ResultEntity updateStus(UpdateStatusDTO dto);
}
